package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatNewsFeign {

    @RequestMapping({"/wechat/newsmgr/newsdetail"})
    String companyNewsDetail( @RequestParam("jsonObject") JSONObject jsonObject);

    @PostMapping(value = {"/wechat/newsmgr/ajaxnewspage"})
    String ajaxNewsPage(@RequestParam("topClassId") String topClassId, @RequestParam("jsonObject") JSONObject jsonObject);
}
